<template>
	<view class="box">
		<view class="envelopeWrap">
		<view class="envelopeTitle" @click="redPackets()">
			<text>红包明细</text>
		</view>
		
		<view class="envelopeCentent">
			<image src="../../static/image/evnbleMoney.png"></image>
			<text>我的红包(元)</text>
			<view class="envelopeContentMoney">
				<text>￥</text>
				<text>200</text>
			</view>
			<view class="envelopeBtn" @click="cashWithdrawal()">
				提现
			</view>
		</view>
	    
		<view class="envelopeBottom" @click="jumpRed()">
		   <image src="../../static/image/redEnvelope.png"></image>
		</view>
		
		</view>
	</view>
</template>

<script>
	import api from '../../api/index.js';
	export default {
		data() {
			return {
				infos:{},//个人设置信息
				bankCardNos:'',//银行卡号截取使用
			}
		},
	    mounted() {
	    	this.getredEnvelope()
	    },
		methods: {
			// 获取红包余额
			getredEnvelope(){
				api.myHelp.redEnvelope().then(res => {
					if (res.code == 1) {
						this.infos = res.data
					}
				})
			},
			// 提现跳转
			cashWithdrawal(){
				uni.navigateTo({
					 url: '/pages/myMutualHelp/cashWithdrawal'
				})
			},
			// 红包明细
			redPackets(){
				uni.navigateTo({
					 url: '/pages/myMutualHelp/redPackets'
				})
			},
			// 跳转红包
			jumpRed(){
				uni.navigateTo({
					 url: '/pages/redPackage/redPackage'
				})
			}
		
		}
	}
</script>

<style>
	@import url("./redEnvelopeManagement.css");
</style>
